import { Code, CreateDate, DateTime, Digdit, Entity, PrimaryUuid } from "@sker/core";

// 验证码
@Entity({
    name: 'common_captcha'
})
export class CommonCaptcha {
    @PrimaryUuid()
    id: string;

    @Code({ comment: '问题' })
    challenge: string;

    @Code({ comment: '结果' })
    response: string;

    @Code({ comment: '唯一键' })
    hashkey: string;

    @DateTime({ comment: '过期时间' })
    expire_date: Date;

    @CreateDate()
    create_date: Date;
}